package workbench.service;
import workbench.VO.ListAndObject;
import workbench.domain.Activity;
import workbench.domain.ActivityRemark;
import workbench.exception.DeleteException;
import workbench.exception.SaveRemarkException;
import workbench.exception.UpdateException;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ActivityService {
    List<Activity> selectOwners();
    boolean addActivity(Activity activity);
    List<Activity> getActivityList(int pageNum,int pageSize,Activity activity);
    int countActivity(Activity activity);
    boolean deleteActivity(String[] ids) throws DeleteException;
    ListAndObject<Activity> getUserListAndActivity(String id);
    void updataActivity(HttpServletRequest req,Activity activity) throws UpdateException;
    Activity detail(String id);
    List<ActivityRemark> getRemarkMessageById(String id);
    void saveRemark(ActivityRemark activityRemark) throws SaveRemarkException;
}
